<%--
  Created by IntelliJ IDEA.
  User: Rainboz
  Date: 2019/10/24
  Time: 18:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>图片上传</title>
    <style type="text/css">
        #images{
            height: 500px;
            width: 50%;
        }
        td{
            border: 1px solid #c0c0c0;
            text-align: center;
        }
    </style>
</head>
<body>

<table class="table table-bordered table-hover">
    <tr>
        <th>序号</th>
        <th>图片</th>
    </tr>
    <c:forEach items="${imgList}" var="sourcesPhoto">
        <tr>
            <td>${sourcesPhoto.id}</td>
            <td>
                <c:if test="${sourcesPhoto.imgName != null}">
                    <img alt="" src="${APP_PATH}${sourcesPhoto.imgUrl}" id="images">
                </c:if>
            </td>
        </tr>
    </c:forEach>
</table>
</body>
</html>